package com.kaifamiao.N0802;

import java.util.Scanner;

public class Number1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        NumberFormatter1 sub = new NumberFormatter1();
        System.out.println("请输入数字");
        int num = sc.nextInt();
        System.out.println("十进制转二进制："+sub.toBinary(num));
        System.out.println("十进制转八进制："+sub.toOctal(num));
        System.out.print("十进制转二进制：");
        sub.toHex(num);

    }
}
